//导出showToast方法
export function showToast(title: string) {
  uni.showToast({
    title,
    icon: 'none'
  })
}
export function formatStatus(status: number | string) {
  switch (Number(status)) {
    case 0:
      return '在线'
    case 1:
      return '在线'
    case 2:
      return '离线'
    case 3:
      return '运行中'
    case 4:
      return '故障'
    default:
      return '未知'
  }
}

export const pictureUrl = 'http://47.122.19.170:9002'
